import * as R from "ramda";
export type GlobalSetting = {
  xiaohongshuCookieStr:string|null,
}

let globalSetting:GlobalSetting={
  xiaohongshuCookieStr:null,
}

export function getGlobalSetting():GlobalSetting{
  return globalSetting
}

export function setGlobalSetting(setting:Partial<GlobalSetting>):GlobalSetting{
  globalSetting = R.mergeDeepRight(globalSetting,setting)
  return globalSetting
}